﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<IEnumerable<SLIC.Models.EntityModel.ImageGallery>>" %>
<link href="../../Content/css/print.css" rel="stylesheet" type="text/css" />
<style type="text/css">
   h3
    {
        page-break-before: always;
    }
</style>
<div style="display:block;overflow:hidden;height:auto;">
   <% if (Model != null && Model.Where(x =>
        x.FieldId.Equals((byte)Enum.Parse(typeof(SLIC.Models.Enums.FieldName), SLIC.Models.Enums.FieldName.DLStatement.ToString(),
        true))).Count() > 0)
   { %>
<div id="innerContainer" style=" margin-top: 10px;">
    <div class="ImageHeaderBox">
        <h3>
            D/L Statement</h3>
    </div>
    <% foreach (SLIC.Models.EntityModel.ImageGallery item in Model)
       { %>
    <% if (item.FieldId.Equals((byte)Enum.Parse(typeof(SLIC.Models.Enums.FieldName),
        SLIC.Models.Enums.FieldName.DLStatement.ToString(), true)))
       { %>
    <div id="ImageFrame">
        <img src="../../HandlerClasses/imagehandler.ashx?path=<%=ConfigurationManager.AppSettings["ImageSavePath"].ToString()
        %><%=item.ImagePath%>" />
    </div>
    <%}
       } %>
</div>
<%} %>

</div>

